package demo.java.util.concurrent;

import org.junit.Test;

import java.util.concurrent.TimeUnit;

public class TimeUnitDemo {
    @Test
    public void test() {
        System.out.println(TimeUnit.MINUTES.toMillis(3));
        System.out.println(TimeUnit.MINUTES.toMillis(3) == 3 * 60 * 1000L);
        System.out.println(TimeUnit.MILLISECONDS.toSeconds(1500L));
        System.out.println(TimeUnit.MILLISECONDS.toMinutes(1500L));
    }
}
